package com.hsgene.order.dto.peanut;

import com.hsgene.common.util.validation.FieldChecker;

import java.io.Serializable;

/**
 * 基因检测单收款(地服代付: confirm_order_cheques)
 *
 * @author wangbing
 * @version 1.0, 2018/9/30
 */
public class TestingOrderRequestDto implements Serializable {

    public static final String ACTION_DIFU_CONFIRM_MODIFY = "difu_confirm_modify";
    public static final String ACTION_UPLOAD_DCW = "upload_dcw";
    public static final String ACTION_CONFIRM_REQUESTED = "confirm_requested";
    public static final String ACTION_CONFIRM_EXPRESS = "confirm_express_recieved";
    public static final String ACTION_CANCEL_ORDER = "cancel_order";
    public static final String ACTION_CONFIRM_CHEQUES = "confirm_order_cheques";

    public static final String ACTION_COMPLETE_ORDER = "complete_order";

    public static final String ACTION_PROCESS_INTERCHANGE = "process_interchange";

    /**
     * 操作代码
     */
    private String actionCode;

    private String oeId;

    /**
     * 基因检测单内容
     */
    private TestingOrderRequestDataDto testingOrder;

    public void check() {
        //FieldChecker.checkEmpty(actionCode, "操作码");
        FieldChecker.checkEmpty(testingOrder, "基因检测单内容");
        testingOrder.check();
    }

    public String getActionCode() {
        return actionCode;
    }

    public void setActionCode(String actionCode) {
        this.actionCode = actionCode;
    }

    public String getOeId() {
        return oeId;
    }

    public void setOeId(String oeId) {
        this.oeId = oeId;
    }

    public TestingOrderRequestDataDto getTestingOrder() {
        return testingOrder;
    }

    public void setTestingOrder(TestingOrderRequestDataDto testingOrder) {
        this.testingOrder = testingOrder;
    }
}
